import { defHttp } from '@/utils/http/axios';
import { type UserAgentMetricsParams,type UserAgentMetricsPage,type UserAgentMetrics } from './model/userAgent';

enum Api {

  getBrowserNameStatisticsList = '/analyze/user-agent/metrics/getBrowserNameStatisticsList',
  getSystemNameStatisticsList = '/analyze/user-agent/metrics/getSystemNameStatisticsList',
}
export function getBrowserNameStatisticsList(data: UserAgentMetricsParams) {
  return defHttp.post<UserAgentMetrics[]>({ url: Api.getBrowserNameStatisticsList,data });
}
export function getSystemNameStatisticsList(data: UserAgentMetricsParams) {
  return defHttp.post<UserAgentMetrics[]>({ url: Api.getSystemNameStatisticsList,data });
}